#include <stdlib.h>
#include <iostream>
#include "view/MenuPrincipal.h"
#include "view/MenuStack.h"

using namespace std;

int main (int argc, char** argv){

		MenuPrincipal* menuPrincipal = new MenuPrincipal();
		MenuStack * menuStack = MenuStack::getInstance();
		menuStack->push(menuPrincipal);

		while (!menuStack->empty()) {
			system("clear \n");
			cout << "Cliente Base de Datos" << endl;
			cout << "------- ---- -- -----" << endl << endl;
			menuStack->getCurrent()->update();
		}

		menuStack->destroy();
		delete menuPrincipal;

		Cliente::destroy();
	return 0;
}


